h2 <%= file_name.titleize.pluralize %>:

p= link_to 'New <%= file_name.titleize%>', new_<%= file_name %>_path, class: 'tandem_new_resource'

table
  thead
    tr
<% attributes.each do |attribute| -%>
      th <%= attribute.human_name %>
<% end -%>
      th

  tbody
    = content_tag_for(:tr, @<%= plural_table_name %>, class: 'tandem_resource') do |<%= singular_table_name %>|
<% attributes.each do |attribute| -%>
      td= <%= singular_table_name %>.<%= attribute.name %>
<% end -%>
      td
        .tandem_toolbar
          = link_to 'Show', <%= singular_table_name %>
          = link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: 'tandem_edit_resource'
          = link_to 'Delete', <%= singular_table_name %>, method: :delete, data: { confirm: 'Are you sure?' }
